<p><style type="text/css">
    body,td { font-size:13px; }
</style> </p>
<h1 align="center">订单信息</h1>
<table width="100%" cellpadding="1">
    <tbody>
    <tr>
        <td width="80%">
            <table width="100%" cellpadding="1">
                <tbody>
                <tr>
                    <td align="right">购货人</td>
                    <td>{if $order.buy_username}{$order.buy_username}{else}匿名{/if}</td>
                    <td align="right">下单时间</td>
                    <td>{dr_date($order.order_time)}</td>
                    <td align="right">订单编号</td>
                    <td>{$order.sn}</td>
                </tr>
                <tr>
                    <td align="right">付款时间</td>
                    <td>{dr_date($order.pay_time)}</td>
                    <td align="right">发货时间</td>
                    <td>{dr_date($order.shipping_time)}</td>
                    <td align="right">配送方式</td>
                    <td>{if $kd[$order.shipping_type]}{$kd[$order.shipping_type]}{else}无{/if}</td>
                </tr>
                <tr>
                    <td align="right">支付方式</td>
                    <td>{if $paytype[$order.pay_type]}{$paytype[$order.pay_type]['name']}{else}未知{/if}</td>
                    <td align="right">电话号码</td>
                    <td>{$order.shipping_phone}</td>
                    <td align="right">收货人姓名</td>
                    <td>{$order.shipping_name}</td>
                </tr>
                <tr>
                    <td align="right">收货地址</td>
                    <td colspan="55">{$order.shipping_city}{$order.shipping_address}</td>
                </tr>
                </tbody>
            </table>
        </td>
    </tr>
    </tbody>
</table>
<table width="100%" border="1" style="border-collapse:collapse;border-color:#000;">
    <tbody>
    <tr align="center">
        <td bgcolor="#cccccc">商品名称</td>
        <td bgcolor="#cccccc">商品货号</td>
        <td bgcolor="#cccccc">商品属性</td>
        <td bgcolor="#cccccc">商品数量</td>
        <td bgcolor="#cccccc">价格小计</td>
    </tr>
    {loop $order.goods $t}
    <tr>
        <td>&nbsp;{$t.title}</td>
        <td>&nbsp;{$t.sn}</td>
        <td>
            <?php $sku=dr_string2array($t.sku);?>
            {if $sku}
            {loop $sku $s $u}<span>{$s}：{$u} </span>{/loop}
            {/if}
        </td>
        <td align="right">{$t.quantity}&nbsp;</td>
        <!-- 商品数量 -->
        <td align="right">{if $order.order_score}{intval($t.price)}{SITE_SCORE}{else}¥{number_format($t.price, 2)}{/if}&nbsp;</td>
        <!-- 商品金额小计 -->
    </tr>
    {/loop}
    <tr>
        <!-- 商品总金额 -->
        <td colspan="55" align="right">总计: {if $order.order_price}{intval($order.order_price)}{SITE_SCORE}{else}¥{number_format($order.order_price, 2)} {/if}</td>
    </tr>
    </tbody>
</table>
<table width="100%" border="0">
    <tbody>
    <tr align="right">
        <td></td>
    </tr>
    <tr align="right">
        <td></td>
    </tr>
    </tbody>
</table>
<table width="100%" border="0">
    <tbody>
    <tr>
        <td>备注信息: {$order.buy_note}</td>
    </tr>
    <tr>
        <td>发货备注: {$order.sell_note}</td>
    </tr>
    <tr align="right">
        <!-- 订单操作员以及订单打印的日期 -->
        <td>打印时间: {dr_date(SYS_TIME)}</td>
    </tr>
    </tbody>
</table>